PLATFORM:=$(shell uname)
FILE_LOCATION:=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))
ifneq ($(PLATFORM),Linux)
FILE_LOCATION_ASSIST:=$(subst /, ,$(FILE_LOCATION))
ifeq ($(word 1,$(FILE_LOCATION_ASSIST)),cygdrive)
FILE_LOCATION:=$(patsubst /cygdrive/$(word 2,$(FILE_LOCATION_ASSIST))%,$(word 2,$(FILE_LOCATION_ASSIST)):%,$(FILE_LOCATION))
endif
endif
PATH_INCLUDE:=$(addprefix $(FILE_LOCATION)../../,$(shell if [ -e $(FILE_LOCATION)../../path_include.txt ];then cat $(FILE_LOCATION)../../path_include.txt;fi))
PATH_LIB:=$(addprefix $(FILE_LOCATION)../../,$(shell if [ -e $(FILE_LOCATION)../../path_lib.txt ];then cat $(FILE_LOCATION)../../path_lib.txt;fi))

.PHONY:all include lib

empty:=
space:=$(empty) $(empty)

all:include_title include lib_title lib;
include_title:
	@echo \>\> include
lib_title:
	@echo \>\> lib
include:
	@echo $(subst $(space),';',$(PATH_INCLUDE))
lib:
	@echo $(subst $(space),';',$(PATH_LIB))
